package com.woniu.apidriver.controller;

import com.woniu.apidriver.service.PointService;
import com.woniu.internalcommon.dto.ResponseResult;
import com.woniu.internalcommon.request.ApiDriverPointRequest;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/upload")
public class PointController {

    @Resource
    private PointService pointService;

    /**
     * 上传车辆轨迹
     * @return
     */
    @PostMapping("/upload")
    public ResponseResult upload(@RequestBody ApiDriverPointRequest apiDriverPointRequest) {
        return pointService.upload(apiDriverPointRequest);
    }
}
